package com.jhgsys.internal.peccancy.entity;


import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 违章登记 Entity
 *
 * @author wanghw
 * @date 2024-08-12 09:46:29
 */
@Data
@TableName("peccancy_information")
public class PeccancyInformation implements Serializable {

    private static final long serialVersionUID = 5859763652216469857L;
    /**
     * 
     */
    @TableId(value = "information_id", type = IdType.ASSIGN_UUID)
    @Size(max = 32, message = "{noMoreThan}")
    private String informationId;

    /**
     * 公司Id
     */
    @TableField("tenant_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String tenantId;

    /**
     * 违章单号
     */
    @TableField("peccancy_no")
    @NotBlank(message = "{required}")
    @Size(max = 64, message = "{noMoreThan}")
    private String peccancyNo;

    /**
     * 项目Id
     */
    @TableField("project_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String projectId;

    /**
     * 项目名称
     */
    @TableField("project_name")
    @NotBlank(message = "{required}")
    @Size(max = 255, message = "{noMoreThan}")
    private String projectName;

    /**
     * 所属业务
     */
    @TableField("business_type")
    @NotBlank(message = "{required}")
    @Size(max = 2, message = "{noMoreThan}")
    private String businessType;

    /**
     * 违章条款类型Id
     */
    @TableField("clause_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String clauseId;

    /**
     * 违章条款类型
     */
    @TableField("clause_name")
    @NotBlank(message = "{required}")
    @Size(max = 255, message = "{noMoreThan}")
    private String clauseName;

    /**
     * 违章条款规则Id
     */
    @TableField("clause_rule_id")
    @NotBlank(message = "{required}")
    @Size(max = 255, message = "{noMoreThan}")
    private String clauseRuleId;

    /**
     * 违章条款内容
     */
    @TableField("clause_rule_content")
    @NotBlank(message = "{required}")
    @Size(max = 800, message = "{noMoreThan}")
    private String clauseRuleContent;

    /**
     *违章对象
     */
    @TableField("dispose_form")
    @NotBlank(message = "{required}")
    @Size(max = 64, message = "{noMoreThan}")
    private String disposeForm;

    /**
     *处理形式
     */
    @TableField("peccancy_object")
    @NotBlank(message = "{required}")
    private String peccancyObject;

    /**
     * 违章类型
     */
    @TableField("peccancy_type")
    @NotBlank(message = "{required}")
    @Size(max = 150, message = "{noMoreThan}")
    private String peccancyType;

    /**
     * 违章作业类别
     */
    @TableField("job_operation")
    @NotBlank(message = "{required}")
    @Size(max = 150, message = "{noMoreThan}")
    private String jobOperation;

    /**
     * 违章原因
     */
    @TableField("peccancy_root_cause")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String peccancyRootCause;

    /**
     * 违章区域Id
     */
    @TableField("peccancy_area_id")
    @Size(max = 32, message = "{noMoreThan}")
    private String peccancyAreaId;

    /**
     * 违章区域
     */
    @TableField("peccancy_area")
    @NotBlank(message = "{required}")
    @Size(max = 255, message = "{noMoreThan}")
    private String peccancyArea;

//    /**
//     * 违章坐标
//     */
//    @TableField("peccancy_axis")
//    @NotBlank(message = "{required}")
//    @Size(max = 64, message = "{noMoreThan}")
//    private String peccancyAxis;

    /**
     * 违章时间
     */
    @TableField("peccancy_time")
    @NotNull(message = "{required}")
    @Size(max = 8, message = "{noMoreThan}")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date peccancyTime;

    /**
     * 是否现场
     */
    @TableField("is_scene")
    @NotNull(message = "{required}")
    @Size(max = 1, message = "{noMoreThan}")
    private String isScene;
    /**
     * 惩发原因
     */
    @TableField("reason")
    @Size(max = 800, message = "{noMoreThan}")
    private String reason;

    /**
     * 违章人员Id
     */
    @TableField("peccancy_user_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String peccancyUserId;

    /**
     * 违章人员工号
     */
    @TableField("peccancy_user_no")
    @NotBlank(message = "{required}")
    @Size(max = 255, message = "{noMoreThan}")
    private String peccancyUserNo;



    /**
     * 违章人员姓名
     */
    @TableField("peccancy_real_name")
    @NotBlank(message = "{required}")
    @Size(max = 150, message = "{noMoreThan}")
    private String peccancyRealName;

    /**
     * 身份证号
     */
    @TableField("peccancy_user_identification_no")
    @Size(max = 64, message = "{noMoreThan}")
    private String peccancyUserIdentificationNo;

    /**
     * 岗位Id
     */
    @TableField("peccancy_user_post_id")
    @Size(max = 32, message = "{noMoreThan}")
    private String peccancyUserPostId;

    /**
     * 岗位名称
     */
    @TableField("peccancy_user_post_name")
    @Size(max = 150, message = "{noMoreThan}")
    private String peccancyUserPostName;

    /**
     * 违章人员部门Id
     */
    @TableField("peccancy_user_dept_id")
    @NotBlank(message = "{required}")
    @Size(max = 255, message = "{noMoreThan}")
    private String peccancyUserDeptId;

    /**
     * 违章人员部门
     */
    @TableField("peccancy_user_dept")
    @NotBlank(message = "{required}")
    @Size(max = 255, message = "{noMoreThan}")
    private String peccancyUserDept;

    /**
     * 承包方Id
     */
    @TableField("peccancy_user_contractor_id")
    @Size(max = 32, message = "{noMoreThan}")
    private String peccancyUserContractorId;

    /**
     *承包方
     */
    @TableField("peccancy_user_contractor_name")
    @Size(max = 255, message = "{noMoreThan}")
    private String peccancyUserContractorName;

    /**
     * 承包队Id
     */
    @TableField("peccancy_user_contractor_team_id")
    @Size(max = 32, message = "{noMoreThan}")
    private String peccancyUserContractorTeamId;

    /**
     * 承包队
     */
    @TableField("peccancy_user_contractor_team_name")
    @Size(max = 255, message = "{noMoreThan}")
    private String peccancyUserContractorTeamName;

    /**
     * 违章人签名
     */
    @TableField("peccancy_user_sign")
    @Size(max = 255, message = "{noMoreThan}")
    private String peccancyUserSign;

    /**
     * 违章性质
     */
    @TableField("peccancy_nature")
    @Size(max = 1, message = "{noMoreThan}")
    private String peccancyNature;
    /**
     * 是否教育视频
     */
    @TableField("learn_video_flg")
//    @NotBlank(message = "{required}")
    @Size(max = 1, message = "{noMoreThan}")
    private String learnVideoFlg;

    /**
     *教育视频
     */
    @TableField("learn_video_url")
    @Size(max = 2000, message = "{noMoreThan}")
    private String learnVideoUrl;

    /**
     * 是否罚款金额
     */
    @TableField("penalty_amount_flg")
//    @NotBlank(message = "{required}")
    @Size(max = 1, message = "{noMoreThan}")
    private String penaltyAmountFlg;

    /**
     * 罚款金额
     */
    @TableField("penalty_amount")
    @Size(max = 22, message = "{noMoreThan}")
    private BigDecimal penaltyAmount;

    /**
     * 罚款金额违章
     */
    @TableField("finally_penalty_amount")
    @Size(max = 22, message = "{noMoreThan}")
    private BigDecimal finallyPenaltyAmount;
    /**
     * 收款人Id
     */
    @TableField("charge_user_id")
    @Size(max = 32, message = "{noMoreThan}")
    private String chargeUserId;

    /**
     * 收款人姓名
     */
    @TableField("charge_real_name")
    @Size(max = 150, message = "{noMoreThan}")
    private String chargeRealName;

    /**
     * 收款方式
     */
    @TableField("charge_type")
    @Size(max = 2, message = "{noMoreThan}")
    private String chargeType;

    /**
     * 收款备注
     */
    @TableField("charge_remark")
    private String chargeRemark;

    /**
     * 收款时间
     */
    @TableField("charge_date")
    @Size(max = 8, message = "{noMoreThan}")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date chargeDate;

    /**
     * 是否罚款分数
     */
    @TableField("penalty_score_flg")
//    @NotBlank(message = "{required}")
    @Size(max = 1, message = "{noMoreThan}")
    private String penaltyScoreFlg;

    /**
     * 罚款分数
     */
    @TableField("penalty_score")
    @Size(max = 22, message = "{noMoreThan}")
    private BigDecimal penaltyScore;
    /**
     * 教育视频状态
     */
    @TableField("Learn_video_status")
    @Size(max = 1, message = "{noMoreThan}")
    private String learnVideoStatus;

    /**
     * 罚款金额状态
     */
    @TableField("penalty_amount_status")
    @Size(max = 1, message = "{noMoreThan}")
    private String penaltyAmountStatus;

    /**
     * 罚款分数状态
     */
    @TableField("penalty_score_status")
    @Size(max = 1, message = "{noMoreThan}")
    private String penaltyScoreStatus;

    /**
     * 缴纳期限
     */
    @TableField("payment_deadline")
    @Size(max = 8, message = "{noMoreThan}")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date paymentDeadline;

    /**
     * 开单用户Id
     */
    @TableField("invoice_user_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String invoiceUserId;

    /**
     * 开单用户姓名
     */
    @TableField("invoice_real_name")
    @NotBlank(message = "{required}")
    @Size(max = 150, message = "{noMoreThan}")
    private String invoiceRealName;

    /**
     * 开单时间
     */
    @TableField("invoice_date")
    @NotNull(message = "{required}")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date invoiceDate;

    /**
     * 审核人Id
     */
    @TableField("audit_user_id")
    @Size(max = 32, message = "{noMoreThan}")
    private String auditUserId;

    /**
     * 审核人姓名
     */
    @TableField("audit_real_name")
    @Size(max = 150, message = "{noMoreThan}")
    private String auditRealName;

    /**
     * 审核备注
     */
    @TableField("audit_remark")
    @Size(max = 800, message = "{noMoreThan}")
    private String auditRemark;

    /**
     * 审核时间
     */
    @TableField("audit_date")
    @Size(max = 8, message = "{noMoreThan}")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date auditDate;

    /**
     * 签发人Id
     */
    @TableField("issuance_user_id")
    @Size(max = 32, message = "{noMoreThan}")
    private String issuanceUserId;

    /**
     * 签发人姓名
     */
    @TableField("issuance_real_name")
    @Size(max = 150, message = "{noMoreThan}")
    private String issuanceRealName;

    /**
     * 签发时间
     */
    @TableField("issuance_date")
    @Size(max = 8, message = "{noMoreThan}")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date issuanceDate;

    /**
     * 签发备注
     */
    @TableField("issuance_remark")
    @Size(max = 800, message = "{noMoreThan}")
    private String issuanceRemark;

    /**
     * 数据来源
     */
    @TableField("data_source")
    @NotBlank(message = "{required}")
    @Size(max = 2, message = "{noMoreThan}")
    private String dataSource;

    /**
     * 申诉标记
     */
    @TableField("appea_flg")
    @NotBlank(message = "{required}")
    @Size(max = 1, message = "{noMoreThan}")
    private String appeaFlg;

    /**
     * 申诉人Id
     */
    @TableField("appeal_user_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String appealUserId;

    /**
     * 申诉人姓名
     */
    @TableField("appeal_real_name")
    @NotBlank(message = "{required}")
    @Size(max = 150, message = "{noMoreThan}")
    private String appealRealName;

    /**
     * 申诉时间
     */
    @TableField("appeal_time")
    @NotNull(message = "{required}")
    @Size(max = 8, message = "{noMoreThan}")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date appealTime;

    /**
     * 申诉原因
     */
    @TableField("appeal_reason")
    @NotBlank(message = "{required}")
    @Size(max = 800, message = "{noMoreThan}")
    private String appealReason;

    /**
     * 申诉状态
     */
    @TableField("appeal_status")
    @NotBlank(message = "{required}")
    @Size(max = 2, message = "{noMoreThan}")
    private String appealStatus;

    /**
     * 状态
     */
    @TableField("status")
    @NotBlank(message = "{required}")
    @Size(max = 2, message = "{noMoreThan}")
    private String status;

    /**
     * 流程申请Id
     */
    @TableField("workflow_apply_id")
    private String workflowApplyId;


    /**
     * 新增人
     */
    @TableField("created_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String createdBy;

    /**
     * 新增时间
     */
    @TableField("created_time")
    @Size(max = 8, message = "{noMoreThan}")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    /**
     * 修改人
     */
    @TableField("updated_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String updatedBy;

    /**
     * 修改时间
     */
    @TableField("updated_time")
    @Size(max = 8, message = "{noMoreThan}")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;

    /**
     * 删除人
     */
    @TableField("deleted_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String deletedBy;

    /**
     * 删除时间
     */
    @TableField("deleted_time")
    @Size(max = 8, message = "{noMoreThan}")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date deletedTime;

    /**
     * 删除标记
     */
    @TableField("deleted_flg")
    @Size(max = 1, message = "{noMoreThan}")
    private String deletedFlg;
}